package com.atguigu.gmall.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "service-product",path = "api/index",contextId = "ApiBaseCategoryViewFeign")
public interface ApiBaseCategoryViewFeign {

    @GetMapping("/listCategory")
    public List<JSONObject> listCategory();
}
